package sessionBeans;

import java.util.List;

import javax.ejb.Local;

import entityBeans.Contact;
import entityBeans.ContactGroup;

@Local
public interface GestionContactGroupLocal {

	public List<String> search();

	public ContactGroup addGroup(ContactGroup cg);

	public ContactGroup find(String name);

	public List<ContactGroup> getAllGroup();

	public void updateGroup(ContactGroup grp, Contact c);

	public void updateGroupByName(String grName, Contact c);

	public void delete(String grName);

	public List<ContactGroup> getGroupsByContactId(int id);

	public List<ContactGroup> getGroupsByEntId(int id);
}
